<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/MMS/Admin/Home/Menu.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/MMS/Admin/Home</a> Menu.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/55</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/20</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/23</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/55</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div class="content" ref="MentContent"&gt;
    &lt;el-menu :default-openeds="octopus.passport.menu" class="el-menu-vertical-demo" @open="opened" @close="closed"
             :collapse="menuIsFull"&gt;
      &lt;el-submenu v-for="section in source.data.queryData" :index="section.ID.toString()" :key="section.ID"
                  v-if="section.ParentID === octopus.passport.system &amp;&amp; (','+octopus.passport.authorization.data+',').indexOf(','+section.ID+'_1,') &gt; -1"&gt;
        &lt;template slot="title"&gt;
          &lt;!--          &lt;i class="el-icon-location"&gt;&lt;/i&gt;--&gt;
          &lt;a v-bind:class="section.Icon"&gt;&lt;/a&gt;
          &lt;span slot="title"&gt;{{section[octopus.passport.language]}}&lt;/span&gt;
        &lt;/template&gt;
        &lt;!--        &lt;el-menu-item-group&gt;--&gt;
        &lt;!--          &lt;span slot="title"&gt;分组一&lt;/span&gt;--&gt;
        &lt;!--          &lt;el-menu-item index="1-1"&gt;选项1&lt;/el-menu-item&gt;--&gt;
        &lt;!--          &lt;el-menu-item index="1-2"&gt;选项2&lt;/el-menu-item&gt;--&gt;
        &lt;!--        &lt;/el-menu-item-group&gt;--&gt;
        &lt;template v-for="item in source.data.queryData"&gt;
          &lt;el-submenu :index="section.ID+'-'+item.ID" :key="item.ID"
                      v-if="item.ParentID === section.ID &amp;&amp; item.IsShow === 1 &amp;&amp; isExistSubMenu(item.ID)"&gt;
            &lt;span slot="title"&gt;{{item[octopus.passport.language]}}&lt;/span&gt;
&nbsp;
            &lt;el-menu-item v-for="subject in source.data.queryData" :index="section.ID+'-'+item.ID+''+subject.ID"
                          :key="subject.ID" v-if="subject.ParentID === item.ID &amp;&amp; subject.IsShow === 1"
                          v-on:click="set(subject)"&gt;
              {{subject[octopus.passport.language]}}
            &lt;/el-menu-item&gt;
          &lt;/el-submenu&gt;
          &lt;el-menu-item :index="section.ID+'-'+item.ID" v-on:click="set(item)" :key="item.ID"
                        v-if="item.ParentID === section.ID &amp;&amp; item.IsShow === 1 &amp;&amp; !isExistSubMenu(item.ID)"&gt;
            &lt;!--            &lt;span class="el-icon-menu"&gt;&lt;/span&gt;--&gt;
            &lt;span slot="title"&gt;{{item[octopus.passport.language]}}&lt;/span&gt;
          &lt;/el-menu-item&gt;
        &lt;/template&gt;
      &lt;/el-submenu&gt;
      &lt;!--      &lt;el-menu-item index="2"&gt;--&gt;
      &lt;!--        &lt;template&gt;--&gt;
      &lt;!--          &lt;i class="el-icon-location"&gt;&lt;/i&gt;--&gt;
      &lt;!--          &lt;span slot="title"&gt;导航222&lt;/span&gt;--&gt;
      &lt;!--        &lt;/template&gt;--&gt;
      &lt;!--        &lt;el-menu-item index="2-1"&gt;--&gt;
      &lt;!--          &lt;template&gt;--&gt;
      &lt;!--            &lt;i class="el-icon-location"&gt;&lt;/i&gt;--&gt;
      &lt;!--            &lt;span slot="title"&gt;1231231&lt;/span&gt;--&gt;
      &lt;!--          &lt;/template&gt;--&gt;
      &lt;!--        &lt;/el-menu-item&gt;--&gt;
      &lt;!--      &lt;/el-menu-item&gt;--&gt;
      &lt;!--      &lt;el-menu-item index="3" disabled&gt;--&gt;
      &lt;!--        &lt;i class="el-icon-document"&gt;&lt;/i&gt;--&gt;
      &lt;!--        &lt;span slot="title"&gt;导航三&lt;/span&gt;--&gt;
      &lt;!--      &lt;/el-menu-item&gt;--&gt;
    &lt;/el-menu&gt;
&nbsp;
    &lt;div v-if="false"&gt;
      &lt;div v-for="section in source.data.queryData" class="section" v-if="section.ParentID === octopus.passport.system
    &amp;&amp; (','+octopus.passport.authorization.data+',').indexOf(','+section.ID+'_1,') &gt; -1"&gt;
        &lt;div class="title" v-on:click="choice($event.target,section)"&gt;
          &lt;span v-bind:class="section.Icon"&gt;&lt;/span&gt; &lt;!--onclick="$(this).parent().click()"--&gt;
          &lt;span class="text"&gt;{{section[octopus.passport.language]}}&lt;/span&gt;
          &lt;!--onclick="$(this).parent().click()"--&gt;
        &lt;/div&gt;
        &lt;div class="item" v-for="item in source.data.queryData" v-if="item.ParentID === section.ID &amp;&amp; item.IsShow === 1"
             v-on:click="set(item)" v-bind:style="{display:section.show?'block':'none'}"&gt;
          {{item[octopus.passport.language]}}
          &lt;!--        {{offsetHeight}}--&gt;
          &lt;div class="subject" v-if="isExistSubMenu(item.ID)" v-bind:style="{marginTop:offsetHeight}"&gt;
            &lt;div v-for="subject in source.data.queryData" v-if="subject.ParentID === item.ID &amp;&amp; subject.IsShow === 1"
                 v-on:click="set(subject)"&gt;
              {{subject[octopus.passport.language]}}
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&nbsp;
&nbsp;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
  export default {
    name: 'com_menu', /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >      return {</span>
        octopus: this.$parent.octopus,
        source: {data: {}},
        menuIsFull: false, // 菜单是否。
      }
    },
<span class="fstat-no" title="function not covered" >    created: function () {</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tips.debug("Menu.vue执行了created事件。");</span>
    },
<span class="fstat-no" title="function not covered" >    mounted: function () {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >      this.$nextTick(function () {</span></span>
<span class="cstat-no" title="statement not covered" >        this.init();</span>
      });
    },
    // 活动事件，写在这里的好处是不管是第一次创建还是后退回来，都会触发这个事件
    // 比较典型的就是列表组件，返回的时候往往是需要刷新的。
<span class="fstat-no" title="function not covered" >    activated: function () {</span>
<span class="cstat-no" title="statement not covered" >      this.load();// 首先执行初始化，获取所有系统全部菜单的缓存。</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tips.debug("Menu.vue执行了activated事件。");</span>
    },
<span class="fstat-no" title="function not covered" >    updated: function () {</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tips.debug("Menu.vue执行了updated事件。");</span>
    },
    computed: {
      // getSystemID: function () {
      //   this.system = 1;
      //   return system;
      // }
    },
    methods: {
      // 初始化菜单八爪鱼数据源
<span class="fstat-no" title="function not covered" >      init: function () {</span>
<span class="cstat-no" title="statement not covered" >        let o = this;</span>
        // // 监听滚动条事件。
        // $(this.$refs.MentContent).scroll(function (e) {
        //   o.resizeHeight(e);
        // });
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        $(window).on("resize", function () {</span></span>
&nbsp;
          // 框架min-width为1000，所以统一如果小于1000，则自动最小化。
<span class="cstat-no" title="statement not covered" >          if ($(window).width() &lt; 1000) {</span>
<span class="cstat-no" title="statement not covered" >            o.menuIsFull = true;</span>
            // alert($(".menu .content").html())
<span class="cstat-no" title="statement not covered" >            $(".main .menu").width("65px");</span>
<span class="cstat-no" title="statement not covered" >            $(".menu .content").width("65px");</span>
<span class="cstat-no" title="statement not covered" >            $(".body .content .window").width($(".head .content").width() - 65);</span>
          } else {
<span class="cstat-no" title="statement not covered" >            o.menuIsFull = false;</span>
<span class="cstat-no" title="statement not covered" >            $(".main .menu").width("200px");</span>
<span class="cstat-no" title="statement not covered" >            $(".menu .content").width("200px");</span>
<span class="cstat-no" title="statement not covered" >            $(".body .content .window").width($(".head .content").width() - 200);</span>
          }
&nbsp;
<span class="cstat-no" title="statement not covered" >          console.log($(window).width() + "|" + o.menuIsFull + "|" + $(".head .content").width());</span>
        });
      },
<span class="fstat-no" title="function not covered" >      load: function () {</span>
<span class="cstat-no" title="statement not covered" >        let o = this;</span>
        // 请求后台八爪鱼API框架。
<span class="cstat-no" title="statement not covered" >        this.octopus.request.api.post("/Octopus/Engine/List", {</span>
            id: 13,
            orderData: "Sort ASC",
            cellData: [
              {name: this.octopus.passport.language},
              {name: "ParentID",},
              {name: "Icon"},
              {name: "Url"},
              {name: "IsShow"},
            ],
            pageData: {
              index: 1,
              listSize: 11,
              rowSize: 7777//菜单不可能到777个的，因为7是我的幸运数字，所以7777，哈哈哈。
            }
          },
          // 处理回调事件，通过分析data.status.code的状态来实现。
<span class="fstat-no" title="function not covered" >          function (data) {</span>
<span class="cstat-no" title="statement not covered" >            if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >              $(data.content.queryData).each(function (index, item) {</span></span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                $(o.octopus.passport.menu).each(function (mIndex, mItem) {</span></span>
<span class="cstat-no" title="statement not covered" >                  if (mItem.ID == item.ID) {</span>
                    // 此处从passprot中获取需要打开的菜单项目记忆。
<span class="cstat-no" title="statement not covered" >                    item.show = true;</span>
<span class="cstat-no" title="statement not covered" >                    return false;// 跳出当前循环，记录为true。</span>
                  }
<span class="cstat-no" title="statement not covered" >                  item.show = false;</span>
                });
&nbsp;
                // 通过护照数据，判断当前用户是否具备当前菜单的权限
&nbsp;
&nbsp;
              });
              // 新增属性，需要使用$set，详细参考：https://blog.csdn.net/panyang01/article/details/76665448
<span class="cstat-no" title="statement not covered" >              o.$set(o.source, "data", data.content);</span>
            } else {
<span class="cstat-no" title="statement not covered" >              o.octopus.tips.error(data);</span>
            }
            // 调用大小监听，因为平台高度页面是由Menu组件撑开的。
            // o.resize();
          });
      },
      // 面板展开
<span class="fstat-no" title="function not covered" >      opened(key, keyPath) {</span>
        // 控件
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        if( $.grep(this.octopus.passport.menu, function (index) {</span></span>
<span class="cstat-no" title="statement not covered" >          return index == key;//筛选出当前数据列数据</span>
        }).length==0) {
<span class="cstat-no" title="statement not covered" >          this.octopus.passport.menu.push(key);</span>
          // alert(key);
          // this.menuOpen = key;
          // console.log(key, keyPath);
        }
      },
      // 面板收起来触发。
<span class="fstat-no" title="function not covered" >      closed(key, keyPath) {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        this.octopus.passport.menu = $.grep(this.octopus.passport.menu, function (index) {</span></span>
<span class="cstat-no" title="statement not covered" >          return index != key;//筛选出当前数据列数据</span>
        });
      },
<span class="fstat-no" title="function not covered" >      set: function (menu) {</span>
        // 如果
<span class="cstat-no" title="statement not covered" >        if (!this.isExistSubMenu(menu.ID)) {</span>
          // 循环tab，将当前焦点菜单定位false，因为新点击的菜单焦点是为true的。
<span class="cstat-no" title="statement not covered" >          let isExists = false;</span>
<span class="cstat-no" title="statement not covered" >          let currentMenu;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >          $(this.octopus.passport.tab).each(function (index, item) {</span></span>
<span class="cstat-no" title="statement not covered" >            if (item.id == menu.ID) {</span>
<span class="cstat-no" title="statement not covered" >              currentMenu = item;</span>
<span class="cstat-no" title="statement not covered" >              isExists = true;</span>
            } else {
<span class="cstat-no" title="statement not covered" >              item.current = false;</span>
            }
          });
&nbsp;
          // 如果不存在，则创建新tab。
<span class="cstat-no" title="statement not covered" >          if (!isExists) {</span>
            // 格式化m
<span class="cstat-no" title="statement not covered" >            currentMenu = {</span>
              id: menu.ID,
              url: menu.Url,
              name: menu[this.octopus.passport.language]
            }
            // 将选中的菜单追加到tab集合
            this.octopus.passport.tab.push(currentMenu);
          }
&nbsp;
          // 设置当前选中Tab
<span class="cstat-no" title="statement not covered" >          this.octopus.passport.tabCurrentName = "M_" + currentMenu.id;</span>
&nbsp;
          // 设置回调click事件
<span class="cstat-no" title="statement not covered" >          if (this.click) {</span>
<span class="cstat-no" title="statement not covered" >            this.click(currentMenu);</span>
          }
        }
      },
<span class="fstat-no" title="function not covered" >      isExistSubMenu: function (menuid) {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        let subData = $.grep(this.source.data.queryData, function (value) {</span></span>
          // 如果当前菜单下存在菜单 并且 显示
<span class="cstat-no" title="statement not covered" >          return (value.ParentID == menuid &amp;&amp; value.IsShow == 1);</span>
        });
&nbsp;
<span class="cstat-no" title="statement not covered" >        if (subData.length &gt; 0) {</span>
<span class="cstat-no" title="statement not covered" >          return true;</span>
        } else {
<span class="cstat-no" title="statement not covered" >          return false;</span>
        }
      },
      // 界面的高度撑开由Menu组件实现，故需求写在这里
<span class="fstat-no" title="function not covered" >      resizeHeight: function (e) {</span>
        // // 计算被遮掉的高度 scrollLeft
        // // this.offsetHeight = $(window).height() - o.octopus.template.getTheme().offset.menu;
        // this.offsetHeight = $(".menu .content").scrollTop(); // 此方法可用。
        // // console.log($(".content").scrollTop())
        // // console.log($(".content").offset().top);
        // // console.log($(this.$refs.MentContent).scrollTop());
        // // console.log($(".menu .content").scrollTop());
      },
      // 刷新当前组件。
<span class="fstat-no" title="function not covered" >      refresh: function () {</span>
        // Vue强制刷新
<span class="cstat-no" title="statement not covered" >        this.$forceUpdate();</span>
      },
    },
    watch: {
<span class="fstat-no" title="function not covered" >      system: function (val, old) {</span>
<span class="cstat-no" title="statement not covered" >        console.log("===" + val + ",old:" + old);</span>
      }
    },
    props: ["click"]
  }
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
